<?php
/**
 * 关注动态
 * @author Administrator
 *
 */
class HomeController extends AppController {
	/**
	 * 初始化执行
	 *
	 * @see AppController::beforeFilter()
	 */
	public function beforeFilter() {
		parent::beforeFilter ();
		
		if (is_null ( $this->Cookie->read ( 'uid' ) ) || $this->Cookie->read ( 'uid' ) == 0) {
			$this->redirect ( '/' );
		}
	}
	public function index() {
		$this->set ( 'title_for_layout', '女人集市 - 关注动态 ' );
		
		// 加载css文件
		$this->set ( 'cssList', array (
				'profile.css' 
		) );
	}
}
?>